<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <title>个人中心</title>
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta name="apple-mobile-web-app-capable" content="no" />
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/base.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/personalCenter.css">
</head>

<body>
<%@ include file="/WEB-INF/jsp/public.jsp"%>
  <div class="rel f0">
    <div class="personalCenter__panel">
      <a class="user__headportrait" href="${pageContext.request.contextPath}/user/toSetup">
      <c:choose>
          	<c:when test="${empty requestScope.user.imageAddress}">
          	<img id="base64Image" src="${pageContext.request.contextPath}/static/images/icon_default_03.jpg" alt="">
          	</c:when>
          	<c:otherwise>
          	<img id="base64Image" src="${requestScope.user.imageAddress}"  onerror="this.src='${pageContext.request.contextPath}/static/images/icon_default_03.jpg'" alt="">
        
          	</c:otherwise>
          </c:choose>
      </a>
      <a class="btn__set_info" href="${pageContext.request.contextPath}/user/toSet"></a>
      <p class="user__name">${requestScope.user.petName }<span id="vipimg"></span>
      <input type="hidden" value="${requestScope.user.level }" id="input"/>
      </p>
      <p id="upgrade_vip">
        <a class="btn__upgrade_vip dib vm" id="btn__upgrade_vip" href="${pageContext.request.contextPath}/user/myvip/regulation">升级为VIP</a>
        <a class="btn__recharge dib vm" href="${pageContext.request.contextPath}/user/myvip/goRecharge">充值</a>
      </p>
    </div>
  </div>
  <div class="floor floor__tips">
    <div class="fix floor__tips_assets">
      <span class="l tips_balance pct33">余额:${requestScope.user.balance }</span>
      <span class="l tips_bonus pct33">佣金:${requestScope.user.bonus}</span>
      <span class="l tips_integral pct33">兑换券:${requestScope.user.points }</span>
    </div>
    <div class="line__bottom_efeff4"></div>
    <div class="floor__tips_order">
      <a href="${pageContext.request.contextPath}/order?state=00&type=stateOrder"><i class="icon_order_one dib vm"><span id="one" class="tips__order">${requestScope.stateCount.one }</span></i>待付款</a>
      <a href="${pageContext.request.contextPath}/order?state=01&type=stateOrder"><i class="icon_order_two dib vm"><span id="two"class="tips__order">${requestScope.stateCount.two }</span></i>待发货</a>
      <a href="${pageContext.request.contextPath}/order?state=02&type=stateOrder"><i class="icon_order_three dib vm"><span id="three" class="tips__order">${requestScope.stateCount.three }</span></i>待收货</a>
    </div>
  </div>
  <div class="floor">
    <ul class="floor__order_nav">
    <li class="order_nav_item line__bottom_efeff4">
        <a class="dt" id="invite_friend" href="javascript:;" id ="imgcode">
          <span>邀请好友</span><span class="icon_order_nav r"></span>
          <input type="hidden" id="vipcode" value="${sessionScope.vipcode}"/>
          <input type="hidden" id="domain" value="${requestScope.domain}"/>
        </a>
      </li>
      <li class="order_nav_item line__bottom_efeff4">
        <a class="dt" href="${pageContext.request.contextPath}/order">
          <span>我的订单</span><span class="icon_order_nav r"></span>
        </a>
      </li>
      <li class="order_nav_item line__bottom_efeff4">
        <a class="dt" href="${pageContext.request.contextPath}/wallet">
          <span>我的钱包</span><span class="icon_order_nav r"></span>
        </a>
      </li>
      <%-- <li class="order_nav_item line__bottom_efeff4">
        <a class="dt" href="${pageContext.request.contextPath}/bill">
          <span>账户明细</span><span class="icon_order_nav r"></span>
        </a>
      </li> --%>
      <li class="order_nav_item line__bottom_efeff4">
        <a class="dt" href="${pageContext.request.contextPath}/address">
          <span>收货地址</span><span class="icon_order_nav r"></span>
        </a>
      </li>
     <%--  <li class="order_nav_item line__bottom_efeff4">
        <a class="dt" href="${pageContext.request.contextPath}/user/myvip">
          <span>我的vip</span><span class="icon_order_nav r"></span>
        </a>
      </li> --%>
      
      <li class="order_nav_item line__bottom_efeff4">
        <a class="dt" href="${pageContext.request.contextPath}/user/myvip/myfriend">
        <span>我的好友</span><span class="icon_order_nav r"></span>
      </a>
      </li>
      <li class="order_nav_item line__bottom_efeff4">
        <a  href="${pageContext.request.contextPath}/user/myvip/bonus?id=${requestScope.user.id}">
        <span>奖金明细</span><span class="icon_order_nav r"></span>
      </a>
      </li>
    </ul>
  </div>
  <div class="floor">
    <ul class="floor__order_nav">
      <li class="order_nav_item line__bottom_efeff4">
        <a class="dt" href="tel:400-6670888">
          <span>客服热线</span><span class="r">400-6670888</span>
        </a>
      </li>
    </ul>
  </div>
  <script src="${pageContext.request.contextPath}/static/js/lib/jquery/jquery.min.js"></script>
  <script src="${pageContext.request.contextPath}/static/js/wap/main-my-uservip.js"></script>
  <script src="${pageContext.request.contextPath}/static/js/wap/main-my-vip.js"></script>
  <script src="${pageContext.request.contextPath}/static/js/lib/layer/layer.js"></script>
  <script src="${pageContext.request.contextPath}/static/js/lib/menu.js"></script>
  <script src="${pageContext.request.contextPath}/static/js/lib/clipboard.min.js"></script>
</body>
  
</html>
